package cz.jm.web.jmlib.client.dialog.items;

import com.google.gwt.user.client.ui.TextBox;

/** Polozka dialogu predstavujuca klasicky input box. */
public class InputBox extends DialogItem {

	private final TextBox input = new TextBox();


	public InputBox() {	
		setDialogMasterEntry(input);
		addWarningHint(input);
		input.setSize(PREFERED_MASTER_ENTRY_WIDTH, PREFERED_MASTER_ENTRY_HEIGHT);
	}

	public TextBox getInput() {
    	return input;
    }

	@Override
    public String getValidationValue() {
	    return input.getValue();
    }

}
